package com.jhoncy.rapid.base.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhuangqi
 * @date 2017/7/19.
 */
@Entity
public class BaseUser implements Serializable{

    private static final long serialVersionUID = 6859948246872074060L;
    @Id
    @Column(nullable = false,length = 32)
    private String userId;

    @Column(nullable = false,length = 64)
    private String userName;

    @Column(nullable = false,length = 64)
    private String password;

    @Column(nullable = false,length = 32)
    private String name;

    @Column(nullable = false)
    private Boolean status;

    @Column(length = 32)
    private String email;

    @Column(length = 16)
    private String phone;

    @Column(length = 32)
    private String offoceId;

    @Column(length = 32)
    private String insertUser;

    private Date insertDate;

    @Column(length = 32)
    private Integer lastIp;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOffoceId() {
        return offoceId;
    }

    public void setOffoceId(String offoceId) {
        this.offoceId = offoceId;
    }

    public String getInsertUser() {
        return insertUser;
    }

    public void setInsertUser(String insertUser) {
        this.insertUser = insertUser;
    }

    public Date getInsertDate() {
        return insertDate;
    }

    public void setInsertDate(Date insertDate) {
        this.insertDate = insertDate;
    }

    public Integer getLastIp() {
        return lastIp;
    }

    public void setLastIp(Integer lastIp) {
        this.lastIp = lastIp;
    }
}
